<?php
require 'dbhead.php';

$query = "SELECT uid FROM user";
$result = mysql_query($query, $connect) or dberr($connect, $query, __LINE__);

$row = mysql_fetch_array($result);
echo $row['uid'];
?>